package com.ruicar.afs.cloud.workflow.api.dto.flowprocess.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class FlowInstanceBean {
    @JSONField(name = "id")
    @JsonProperty("id")
    private String id;

    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    @JSONField(name = "ctaskid")
    @JsonProperty("ctaskid")
    private String currentTaskId;

    @JSONField(name = "ctaskname")
    @JsonProperty("ctaskname")
    private String currentTaskName;

    @JSONField(name = "dataid")
    @JsonProperty("dataid")
    private String bizDataId;

    @JsonProperty("serviceId")
    @JSONField(name = "serviceId")
    private String serviceId;

    @JsonProperty("afsFlowKey")
    @JSONField(name = "afsFlowKey")
    private String afsFlowKey;

    @JsonProperty("status")
    @JSONField(name = "status")
    private int status;

    @JSONField(name = "cdate",format = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("cdate")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
}
